<template>
  <tfoot>
    <tr>
      <td>合计:{{ count }}</td>
      <td colspan="5">{{ count }}</td>
    </tr>
  </tfoot>
</template>

<script>
import bus from './bus'
export default {
  data() {
    return {
      count: 0,
    }
  },
  // watch: {
  //   count(val) {
  //     this.count = val
  // },
  created() {
    bus.$on('getCount', (msg) => {
      console.log(msg)
      this.count = msg
    })
  },
}
</script>

<style></style>